import request from '@/utils/request'

// 查询测试数据评估列表
export function listEvaluation(query) {
  return request({
    url: '/aiexperiments/evaluation/list',
    method: 'get',
    params: query
  })
}

// 查询测试数据评估详细
export function getEvaluation(evaluationId) {
  return request({
    url: '/aiexperiments/evaluation/' + evaluationId,
    method: 'get'
  })
}

// 新增测试数据评估
export function addEvaluation(data) {
  return request({
    url: '/aiexperiments/evaluation',
    method: 'post',
    data: data
  })
}

// 修改测试数据评估
export function updateEvaluation(data) {
  return request({
    url: '/aiexperiments/evaluation',
    method: 'put',
    data: data
  })
}

// 删除测试数据评估
export function delEvaluation(evaluationId) {
  return request({
    url: '/aiexperiments/evaluation/' + evaluationId,
    method: 'delete'
  })
}
